How to Open popup in chrome without scrollbars, Disable Resize of popup and Auto resize according to content
UPDATED NOW WORKING
Today I am going to show a tutorials which is a deadly need for many webmasters these days.
Chrome is the most popular browser used by many users these days. Popup is a thing which is used by from Facebook to simple advertisers. Sometimes situations may arise when we want features in opened popup windows.
We Usually ask some Questions related to Popups specially for Chrome:
- How to disable scroll-bars in chrome popup ?
- How to prevent Re-size of popup window opened ?
- How to Auto Re-size Popup window according to the content inside it ?
Now its a YES.
Here we go ....
All changes or Additions will be done in the page which will open inside the Popup Window.
Step 1)
Add Below code in file from where Pop Window will open or having click to pop like Button
<head>
<script type="text/javascript">
<!--
function myPopup2() {
window.open( "pop.html", "myWindow",
"status = 1, height = 300, width = 300, resizable = 0" )
}
//-->
</script>
</head>
<body>
<form>
<input type="button" onClick="myPopup2()" value="POP2!">
</form>
<p onClick="myPopup2()">CLICK ME TOO!</p>
</body>​
Step 2)
Now add Below code in the file [ pop.html ] which will open in the pop up window
You can any type of content in place of GREEN code below
<script src="http://remove-chrome-scroll-bars.googlecode.com/files/control_popup.js"></script> <img width="400px" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzwWK0QeYBssg0UmOvYxQIPyvuQlSJYSJjMRFwgS5Fs7xXbgLu50NOalWAILSK_1Cc9mGJTOC_iyhn0359z6VTBK8oWurTdfKwCSqyN1-wvho3bSMO9YvUTg02hn5D-3mwQyh-R2IpyvA/s320/57screen-cut.png"> <b>Blogger Plug n Play</b> You Can't Hide Me :>
0 comments :
Feel free to leave comment if you like above widget, have any questions or just say Hi! :)