This should get you on track…
<iframe src="https://wordpress.stackexchange.com/questions/224947/javascript:void(0);" frameborder="0" style="display:none;width:100%;margin:0;padding:0;" id="fullsizeframe"></iframe>
<a href="http://website2.com" onclick="loadfullsize(this.href);">Website 2</a>
<script>function loadfullsize(url) {
fullsizeframe = document.getElementById('fullsizeframe');
fullsizeframe.href = url; fullsizeframe.style.height = window.clientHeight;
return false;
} </script>
Note the problem here is you have to insert the iframe HTML directly after the <body> tag (and have no CSS width rules on the body tag) for this to work or the iframe width may be limited to less that full width if inside other containing divs etc.
Related Posts:
- ‘Global’ settings page for multisite plugin
- What Are Security Best Practices for WordPress Plugins and Themes? [closed]
- How do I show data from gravity forms in my template? [closed]
- How can I add a featured image to a page?
- How to customize a plugin whilst maintaining ability to upgrade
- PHP code on Visual Composer Plugin
- How are plugins in the WordPress plugin directory ranked?
- How can I log a user out of WordPress before the page loads?
- What does a security risk in a plugin look like?
- How to generate/update a XML sitemap without plugins?
- How to assign user a role if none is present when logging in
- update_meta_user difference in i:1 and b:1, how to write b:1
- Registration Form Validation in wordpress
- Migrating a File from Plugin to Theme and changing its path → instead create a REST endpoint
- Access wordpress functions inside a plugin class
- resize only height using wp_get_image_editor
- View the source code of a 3rd party plugin? [closed]
- How to find out what blocks are added by a plugin
- Can’t access my WP dashboard: fatal error? [closed]
- allow arabic letters when register new account
- Use plugin or custom post type for game score functionality
- How can I see the error generated by plugin activation?
- How to implement Sentry on WordPress? [closed]
- Need Old Version of plugins
- license check in plugin
- How to append to title via functions.php for auto-posting plugin [duplicate]
- Page Restriction and Redirect for Particular Levels or user
- How to bypass the Easy Digital Downloads checkout process?
- Map Custom Registration Fields to WordPress User Roles
- Shrink down register_settings on Settings API
- custom payment gateway in woocommerce failed to connect to remote api server
- WordPress plugin/theme or other wayout to create portable pages?
- Ajax call returning 0
- How to create restrict content to users (by user, not by role)
- How does WordPress know when there are plugin updates?
- Some code in shortcode function being ignored
- do_shortcode is outputting a string
- Custom plugin appears outside of the sidebar container
- What are the Best Practises When Using AJAX in Plugin Development?
- Plugins in WP_Options but not Active
- Create a single website with 3 theme options in wordpress
- Check if user is on backend page
- How to Resize the Custom Post Images?
- Image tooltip enable/disable
- Error trying to update plugins
- I can’t get blog posts into ‘featured areas’ on homepage
- do_action in conditional
- Show WordPress Plugin Menu(Admin) To Editor
- How many MySQL queries per visit I should normally have?
- Want to modify a Plugin – Tweetily – Can I make it tweet a Custom Field instead of Post Title?
- WordPress plugin with its own “site”/theme
- Multisite Plugin – Access options (wp_options) on child sites
- Plugin Add New Installer failing
- Problem enabling the user to edit Markdown and displaying the HTML output (WMD Editor plugin for WordPress)
- Displaying the facebook profile picture in the WP-FB AutoConnect widget?
- How can I disable an attribute from a Gutenberg block included in a template via InnerBlocks?
- Why the internal link get converted into a comment?
- How to add gallery to post and make seperate album page with gallery link to post?
- Editing a coupon generating plugin
- Shortcode do not return the right data in post
- Display pagination in reservation Plugin and and Print table as pdf
- Undeletable column in Posts
- Search in WordPress
- What is the right way to populate a dropdown from MySql?
- Content disappears when searching with Search & Filter plugin
- Fatal error: Class ‘RDTheme’ not found
- How to fix shifting header after installing speed / cache plugins?
- Set “Open in New tab” as default option
- PHP message: WordPress database error Deadlock found when trying to get lock
- Field salespeople task management
- Multi Language Code Snippet in WordPress
- Can’t manage plugins anymore
- Creating Admin Submenu Page via Class Method
- How to store multiple instances of the plugin’s options for various shortcodes
- plugins break after moving wp-content folder
- How to populate a Mailchimp newsletter with latest events from WordPress plugin EventOn?
- Change localization only for plugin
- How to get author developer link on plugin page
- wp_schedule_event need to deactivate plugin changing recurrance
- How do plugin updates work?
- Show all posts of all categories but excluding a category on custom blog page with pagination of my theme
- ajax request not returning the result
- adding image in the header of my dev widget
- passing ‘&’ in return function of add_filter
- Is there going to an issue running different features of WP site in different subdomains?
- Session alternative for plugins (due to caching)
- Is there a plugin that will override the “Error establishing a database connection” message? [closed]
- List all subpages hierarchically based on the currently viewed page, top ancestor levels included
- Shortcodes can only be used in Pages, not Posts
- how do you point ‘screen_function’ to a function in the same class? [closed]
- Plugin with custom domain
- Create New Admin Menu Section – Like how custom post type works, in a way
- Combining JS files to one script
- How to clean up unnecessary file inside wp-content/plugins/wordpress-seo?
- woocommerce retriving category name as div class?
- Duplicating wordpress install issue
- Woocommerce add product variations block to my custom template
- WordPress Plugin translation not working EN To FR
- Custom page template from plugin does not work with pre-installed themes in WordPress 6.6.1
- Framework plugin inside wordpress