Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Web and javascript
#1
I want to know how to execute a javascript into a web page.
I have tried it, but without any result. Can somebody post an example?
Thanks!
#2
Some scripts can be executed using web. Example:

Firefox: Resizeable_Textarea
#3
Gintaras Wrote:
Code:
Copy      Help
web "javascript:function ResizeTextArea(){document.post.message.rows*=2;}ResizeTextArea();"

I have seen this post yesterday, but my case is a little different. I need to execute a javascript that exist in the web.
I have tried writing:
Code:
Copy      Help
web "javascript:show(8,3);"
without any result.
#4
Maybe exist better ways, but so far:

With the Find Html Element dialog, capture a link in the page. Change href attribute to execute your script. Then click. Also add code to save/restore previous href.

Code:
Copy      Help
Htm el=htm("A" ...) ;;find element
BSTR savehref=el.el.getAttribute("href" 0) ;;save
el.el.setAttribute("href" "javascript:show(8,3)" 1) ;;change
el.Click ;;execute
el.el.setAttribute("href" savehref 1) ;;restore


Forum Jump:


Users browsing this thread: 1 Guest(s)