Switch to full style
HTML,DHTML,Javascript,XML,CSS
Post a reply

Dynamic Frame-sets with java script protocols

Mon Jul 11, 2011 10:20 am

please answer this question.
How to create Dynamic Frame-sets with java script protocols, explain with examples.



Re: Dynamic Frame-sets with java script protocols

Mon Jul 11, 2011 2:11 pm

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>

<FRAMESET cols="50%,*" BORDER=1>
<FRAME src="test2.html" NAME="leftframe">
<FRAME src="test3.html" NAME="rightframe">

</FRAMESET>
<body>

</body>
</HTML>


test2.html
Code:
<html>

<B>Testing codemiles </B></html>


test3.html
Code:
<html>
<body>

<input type="button" value="Click Me!" onclick="javascript:changeFrameSetURL()" />
</body>
</html>


Post a reply
  Related Posts  to : Dynamic Frame-sets with java script protocols
 Dynamic Domain Name System (Dynamic DNS )     -  
 need help with java script in a pdf     -  
 Java script time parameter     -  
 How can I call a C program in a Shell Script from Java     -  
 How to create a file in java script using FireFox     -  
 compare two sets     -  
 Sets Manuplation (C++)     -  
 difference between a Window and a Frame     -  
 Window-Frame-with Diagonal Layout     -  
 multi-frameset and non-re-sizable html frame pages     -