Warface
Warface

Reputation: 5119

Can we send value to an input field in an iframe

Can we send variable to an input field that is in an iFrame ?

I want to build a auto-login script for Google Analytics and would like to load the content of this page (https://www.google.com/accounts/ServiceLoginBoxAuth) to an iframe and then fill the fields with user / pass.

Can we achieve this in jQuery or something similar ?

Upvotes: 1

Views: 173

Answers (1)

Ramon
Ramon

Reputation: 8424

No, browser security will prevent that as your site is not on the domain google.com. See Same Origin Policy

Upvotes: 1

Related Questions