Jump to content

JAVASCRIPT IF FREKIN AWESOME


user4fun

Recommended Posts

I need to check the syntax of the document.cookie statment also do the url part after the ( //)

function get_domain()  {  var domain=prompt("Please enter your website address. Your entry is case sensitive","www.yoursite.com")  if (domain!=null && domain!="")	{	document.cookie = 'website=+domain+';   // i need the current window to change the url to start_uc.php	} else   {	alert("Your domain value was left empty.Please try again!")   }}	</script>

Just a thoughts, when the users browsers asks the user if he/she would like to temporarily accept scripted windows, my alert box automatically comes up, can i get arround that.?

Link to comment
Share on other sites

u want to get the domain automatically?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...