How can a user assign a property dynamically in javascript and generate a page?

 Posted by Kmandapalli on 3/3/2014 | Category: JavaScript Interview questions | Views: 747 | Points: 40
Answer:

<HTML>

<HEAD>
<SCRIPT LANGUAGE = "Javascript">
document.firstline = "Welcome to this page";
</SCRIPT>
<TITLE>load demo</TITLE>
</HEAD>

<BODY>
<SCRIPT>
document.open();
document.write(document.firstline);
document.open();
</SCRIPT>


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response