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.


Post Reply  Post Thread 

PROMPT NAME ON START(javascript),IN A HTML PAGE. Plz help,its not working 4me!

Post Bank
Posting Manager
******

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.

Signin to Remove this Post

Lord_Daksh
Posting Freak
*****


Posts: 643
Group: Registered
Joined: Sep 2007
Status: Offline
Reputation: 0
Points: 16 (Donate)
Post: #1

Sad 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>


IN BODY TAG:

Code:
<script language=JavaScript> <!--- start of javascript hide
document.write("<center><h1>Welcome" 
+ " ");
document.write(Firstname + " ");
document.write("</h1></center>");
//unhide ---> </script>


EARN EASY 50$ IN 10 DAYS!
FREE CALLS,GPRS,SMS,MMS TRICKS,FULL MOVIES,FREE RAPIDSHARE
80$ IN 1 DAY! 20$/REFERRAL!!
16-09-2007 01:58 AM
Visit this user's website Find all posts by this user Quote this message in a reply
ivenms
Administrator
*******


Posts: 2,179
Group: Administrators
Joined: Sep 2006
Status: Offline
Reputation: 14
Points: 4389 (Donate)
Post: #2

JavaScript for Showing Visitor's name on Web Page


Use the following code to display visitors name on your web pages.

IN SIDE OF HEAD TAG:

Code:
<!-- script supplied free by http://webmasters-forums.com -->
<script language=JavaScript>
function enter_name() {

var nam = prompt("Enter your Name: ");
return nam;
}
</script>



INSIDE BODY TAG:

Code:
<script language=JavaScript>
document.write("<center><h1>Welcome" + " ");
document.write( enter_name() + " ");
document.write("</h1></center>");
</script>


Read: General Rules & Policies before posting.
Make Money By Posting | Earning and Exchanging Points | Add Your Links
16-09-2007 11:17 PM
Find all posts by this user Quote this message in a reply
Lord_Daksh
Posting Freak
*****


Posts: 643
Group: Registered
Joined: Sep 2007
Status: Offline
Reputation: 0
Points: 16 (Donate)
Post: #3

RE: PROMPT NAME ON START(javascript),IN A HTML PAGE. Plz help,its not working 4me!


R u sure,dis code wil work?

Because,i'd tried something same,but it dint work for me at all. R u sure?


EARN EASY 50$ IN 10 DAYS!
FREE CALLS,GPRS,SMS,MMS TRICKS,FULL MOVIES,FREE RAPIDSHARE
80$ IN 1 DAY! 20$/REFERRAL!!
16-09-2007 11:48 PM
Visit this user's website Find all posts by this user Quote this message in a reply
ivenms
Administrator
*******


Posts: 2,179
Group: Administrators
Joined: Sep 2006
Status: Offline
Reputation: 14
Points: 4389 (Donate)
Post: #4

RE: PROMPT NAME ON START(javascript),IN A HTML PAGE. Plz help,its not working 4me!


I already worked successfully with that code..

This is my code. It will work... Smile

Please don't try to erase the part:

Code:
<!-- script supplied free by http://webmasters-forums.com -->


Promote this place by putting lines like this for the help proving from here.


Read: General Rules & Policies before posting.
Make Money By Posting | Earning and Exchanging Points | Add Your Links
17-09-2007 12:03 AM
Find all posts by this user Quote this message in a reply
Lord_Daksh
Posting Freak
*****


Posts: 643
Group: Registered
Joined: Sep 2007
Status: Offline
Reputation: 0
Points: 16 (Donate)
Post: #5

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.


EARN EASY 50$ IN 10 DAYS!
FREE CALLS,GPRS,SMS,MMS TRICKS,FULL MOVIES,FREE RAPIDSHARE
80$ IN 1 DAY! 20$/REFERRAL!!
17-09-2007 07:30 AM
Visit this user's website Find all posts by this user Quote this message in a reply
ivenms
Administrator
*******


Posts: 2,179
Group: Administrators
Joined: Sep 2006
Status: Offline
Reputation: 14
Points: 4389 (Donate)
Post: #6

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>


Read: General Rules & Policies before posting.
Make Money By Posting | Earning and Exchanging Points | Add Your Links
17-09-2007 07:49 AM
Find all posts by this user Quote this message in a reply
Lord_Daksh
Posting Freak
*****


Posts: 643
Group: Registered
Joined: Sep 2007
Status: Offline
Reputation: 0
Points: 16 (Donate)
Post: #7

RE: PROMPT NAME ON START(javascript),IN A HTML PAGE. Plz help,its not working 4me!


Ok let me try it again. N i dint remove our forum's tag bro. kept it proudly,as u'd given me the script. Ok wait,i'm checking it.


EARN EASY 50$ IN 10 DAYS!
FREE CALLS,GPRS,SMS,MMS TRICKS,FULL MOVIES,FREE RAPIDSHARE
80$ IN 1 DAY! 20$/REFERRAL!!
22-09-2007 04:48 AM
Visit this user's website Find all posts by this user Quote this message in a reply
ivenms
Administrator
*******


Posts: 2,179
Group: Administrators
Joined: Sep 2006
Status: Offline
Reputation: 14
Points: 4389 (Donate)
Post: #8

RE: PROMPT NAME ON START(javascript),IN A HTML PAGE. Plz help,its not working 4me!


Lord_Daksh Wrote:
Ok let me try it again. N i dint remove our forum's tag bro. kept it proudly,as u'd given me the script. Ok wait,i'm checking it.


Thanks for your support... Bonus points donated.


Read: General Rules & Policies before posting.
Make Money By Posting | Earning and Exchanging Points | Add Your Links
22-09-2007 05:08 AM
Find all posts by this user Quote this message in a reply
Lord_Daksh
Posting Freak
*****


Posts: 643
Group: Registered
Joined: Sep 2007
Status: Offline
Reputation: 0
Points: 16 (Donate)
Post: #9

RE: PROMPT NAME ON START(javascript),IN A HTML PAGE. Plz help,its not working 4me!


Thanks man.N wen i love a place,i get my dedication into it. Its ma good habit..


EARN EASY 50$ IN 10 DAYS!
FREE CALLS,GPRS,SMS,MMS TRICKS,FULL MOVIES,FREE RAPIDSHARE
80$ IN 1 DAY! 20$/REFERRAL!!
22-09-2007 05:39 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Tutorial on making a custom 404 error page Dhanraj 13 461 29-10-2007 03:04 AM
Last Post: ivenms
  Calling a JavaScript function in css stylesheet jimmy 1 211 17-09-2007 05:03 PM
Last Post: ivenms
  I would like to make a simple html page with a dynamic content using java script Cedik 10 368 11-09-2007 05:28 PM
Last Post: ivenms

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites
Rate This Thread:

Forum Jump:

Sign In to Remove Ads

Download 1000's of web templates. Unlimited access!
World's Best Web Hosting
Website of the Month

Create-a-Page for Free
SOTM June 2008


Accepting Submissions
for July 2008
Resources

Recommended Sites:



Visit our Sponsors!

Current time: 29-08-2008, 03:45 PM


Copyright © 2002-2008 MyBB Group
Powered By MyBB