Hello and welcome to the Webmasters Forums!. This is the best place to get webmasters resources for free. Get $2 for free today, read more - Make your payment today. Download premium and professional templates for free. Get free web hosting without ads, read more. You can get lot more by simply join with this forum. To gain full access to the forums you must sign up for a free account.
Posts: 995
Group: Forum Team
Joined: Sep 2006
Status: Online
Make money from now. You can make money just for posting on this forum. Every discussions on this community gives you more money. $2 minimum payout. So get your payment today, SignIn with this forum.
PROMPT NAME ON START(javascript),IN A HTML PAGE. Plz help,its not working 4me!
I used dis below script,which wil ask my visitor his name,n den wil display it in the corresponding page. But i don't know, where i went wrong, n its not working in my html page. Someone please rectify it and give me its working script for an html page. Please...
Ok here is the script..
IN HEAD TAG,
Code:
<script language=JavaScript>
<!-- script supplied free by hypergurl.com http://www.hypergurl.com -->
<!--- start of javascript hide
var Firstname=prompt("Enter your Firstname :","Firstname");
// unhide --->
</script>
RE: PROMPT NAME ON START(javascript),IN A HTML PAGE. Plz help,its not working 4me!
It dint work bro. I knew. Den too,i tried it. But alas,no results. Any good ways to get it in other ways? I'd requested it in an other forum,n they gave me a long code,but i dint understand it,so i dint use.
RE: PROMPT NAME ON START(javascript),IN A HTML PAGE. Plz help,its not working 4me!
Lord_Daksh Wrote:
It dint work bro. I knew. Den too,i tried it. But alas,no results. Any good ways to get it in other ways? I'd requested it in an other forum,n they gave me a long code,but i dint understand it,so i dint use.
Surely it will work...
I did work with the same code.
Here is the full page code:
Code:
<html>
<head>
<!-- script supplied free by http://webmasters-forums.com -->
<script language=JavaScript>
function enter_name() {
var nam = prompt("Enter your Name: ");
return nam;
}
</script>
</head>
<body>
<script language=JavaScript>
document.write("<center><h1>Welcome" + " ");
document.write( enter_name() + " ");
document.write("</h1></center>");
</script>
</body>
</html>