Question subject: Dynamic Frame-sets with java script protocols
Posted: Mon Jul 11, 2011 10:20 am
please answer this question. How to create Dynamic Frame-sets with java script protocols, explain with examples.
msi_333
Question subject: Re: Dynamic Frame-sets with java script protocols
Posted: Mon Jul 11, 2011 2:11 pm
Joined: Tue Mar 27, 2007 10:55 pm Posts: 2279 Location: Earth Has thanked: 39 time Have thanks: 61 time
i think you don't mean java script protocols ? javascript is client side programming language and it doesn't has protocols ,its rules ... anyway you want an example for using dynamic frame sets with JS :you can use the document.write function write your frame sets . For example you can Onload funtion on body tag
Code:
<body onload="javascriptFun()">
to do some dynamic operation or calculation before adding frames .
If you want to use a java script function from main page and use it in sub frame , this is not allowed ,because other html page don't see your javascript function for ex:
test.html
Code:
<HTML><HEAD><TITLE>INDEX.HTML: Setup Starting Framesets</TITLE> <SCRIPT language="JavaScript"> function changeFrameSetURL() { alert('i am here'); } </SCRIPT></HEAD>