Tuesday, December 18, 2012

Set width of javascript popup box

I\’m using the below javascript to display a popup message on page load for a clients website. I am a real novice at js and can only really copy/paste examples I find on the net. Need to know how I can set the width of the popup box. I would like the text to run over two lines, not just span the width of the page. Here is an example of how it appears www.manageourwebsite.com.au



<body onload=\"WelcomeMSG()\">
<script language=\"JavaScript\">

<!--
function WelcomeMSG ()
{
alert(\"Our Retail shop front will be closed from Friday 21st December 2012 thru to Monday 21st January 2013. The Online store will be open 24/7 as usual with all online orders being processed as normal.\")

}

-->
</script>






Rating: 5 out of 5 based on 5 ratings



The post Set width of javascript popup box appeared first on Javascript ASK.






via Javascript ASK http://javascriptask.phpfogapp.com/set-width-of-javascript-popup-box.html

No comments:

Post a Comment