Who can make this responsive popup? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Who can make this responsive popup?

<p class="wp-login-mobile" id="nav" style="padding: 0 !important;margin: 0 0 9px 0 !important;"> <a onclick="window.open('<?php echo WP_DIR_PLUGIN; ?>includes/....','name','width=600,height=400')" href=""> <img align="top" src="<?php echo WP_DIR_PLUGIN; ?>assets/...."> <?php _e('Login with mobile', 'wp...'); ?> </a> </p> open on same page with mobile friendly compability thanks to all .

5th May 2017, 7:14 PM
Matin Zadehdolatabad
Matin Zadehdolatabad - avatar
1 Answer
+ 14
window.open("www.site.com", "_self") What do you mean with "responsive popup"? If you want to make a responsive page after the clicking on the link... you have to use the CSS, try to change the dimension of popup using the percentage, not the pixel. ⏩ width = 100% height = 100%
5th May 2017, 7:26 PM
Maz
Maz - avatar