Labels

Showing posts with label HTML. Show all posts
Showing posts with label HTML. Show all posts

Sunday, February 10, 2013

How to : Popup window with java

Sometimes you will create popup ads or a usefull message for your site. when any user click on a links a new window opens and displays a page.

Creating a popup :
To create a popup you'll need the following script:








Then, you link to it by:






Full Code :
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>howto-bd.blogspot.com</title>

<!-- Java Script For PopUp Start Code-->
<script type="text/javascript" language="javascript">
    function OpenPopup (c) {
    window.open(c,
    'window',
    'width=800,height=800,scrollbars=yes,status=yes')
;
    }
</script>


Friday, January 25, 2013

How to : Make a link, open multiple pages

I have 5 or more links to our company, Example : www.amaderdhaka.com, www.allnewspaper.info, www.tweebd.com, www.tweecart.com, www.tweehost.com.

Now My Boss want to One single click to Open all webpage in his browser with different tabs. For Example : A link or button "Click here for Open Our company websites" which, when my boss click this link/button 5 different tabs open in his browser.

Creating Java Script for open Multiple tabs :












Now create A button for click :






Full Code : 

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>
howto-bd.blogspot.com</title>

<script type="text/javascript">
    function open_win()
    {
        window.open("http://www.amaderdhaka.com")
        window.open("http://www.tweecart.com")
        window.open("http://www.tweebd.com")
        window.open("http://www.tweehost.com")
        window.open("http://www.allnewspaper.info")       
    }
</script>