View Single Post
Old 01-03-2023, 06:19 AM  
Brian mike
So Fucking Banned
 
Industry Role:
Join Date: Oct 2014
Location: USA Territory (Alberta)
Posts: 8,735
Question to AI:
can you wrote me a html pop up code

RE: Here is a basic HTML code for a pop up window:

<html>
<head>
<base href="https://gfy.com/" /><!--[if IE]></base><![endif]-->
<base href="https://gfy.com/" /><!--[if IE]></base><![endif]-->
<script>
function popupWindow() {
window.open("http://www.google.com", "Google", "height=500,width=500");
}
</script>
</head>
<body>

<button onclick="popupWindow()">Open Popup Window</button>

</body>
</html>


This code will create a button that, when clicked, will open a new window with the specified URL ("http://www.google.com" in this case) and dimensions ("height=500,width=500").

Please note that pop up windows can be disruptive and annoying for users, and as such they are generally considered to be a poor user experience. I recommend using pop ups sparingly and only if they are necessary and add value for the user.



I think im in love with that shit AI lol
Brian mike is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote