Ok. Here's the one that loads page1.htm to the iframe, closes "popup1" and "popup3" and opens "popup2" and "popup4":
Code:
javascript:document.getElementById("iframename").src="page1.htm";my_close("popup1");my_close("popup3");my_open("popup2");my_open("popup4")
As you see, all the commands like "my_open("popup2")" are separated with semicolons.
You can also add any other JS statements in the same manner. Fo example, following will load iframe, open popup and show you a message:
Code:
javascript:document.getElementById("iframename").src="page1.htm";my_open("popup2");alert("Well done!!!")
Also note that commands are excuted in the order they are added to this string.
Bookmarks