Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

<How to>use COM Object and Javascript in IE11


  • Please log in to reply
3 replies to this topic
solevow
  • Members
  • 2 posts
  • Last active: Nov 13 2014 09:17 AM
  • Joined: 17 Dec 2013

My os is Win 8.1 and when i copy(ctrl+c) code such as

javascript: alert('Hello World!')

in the Navigator line .

 

It will return as a link or seaching  not as a Javascript.

 

I must type in with keyboard. It will return a Msgbox with' Hello World'.

 

So use the AHK Com Obeject like

wb.Navigate(javascript: alert('Hello World!'))

is useless in the IE 11.

 

So How can I use AHK with COM & JavaScript in IE11? 

 

Please Help .Thanks~!



HotKeyIt
  • Moderators
  • 7439 posts
  • Last active: Jun 22 2016 09:14 PM
  • Joined: 18 Jun 2008

Have you enabled javascript?



solevow
  • Members
  • 2 posts
  • Last active: Nov 13 2014 09:17 AM
  • Joined: 17 Dec 2013

Have you enabled javascript?

enabled yet . My Question is run

wb.Navigate(javascript: alert('Hello World!'))

in AHK. the script in IE have no effect .

 

But When I type in (copy is also useless)  javascript: alert('Hello World!')  and press ENTER button it will pop out the Msgbox.



Coco
  • Members
  • 697 posts
  • Last active: Oct 31 2015 07:26 PM
  • Joined: 27 Jul 2012
try with quotes:
wb.Navigate("javascript: alert('Hello World!')")