Modify ↓
Ticket #2913 (closed bug: invalid)
function attr() was Ineffective in opera
| Reported by: | Rory | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | 1.2.4 |
| Component: | core | Version: | 1.2.3 |
| Keywords: | attr | Cc: | |
| Blocking: | Blocked by: |
Description
code: <iframe id="test_frame" src="test.php"></iframe>
use jquery: $(function() {
$('#test_frame').attr('src', $('#test_frame').attr('src'));
});
i want that test_frame will reload (like window.location.reload()), but in opera it was Ineffective , please help me! thanks.
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

It's kind of expected that re-setting the same src could not actually reload. try
$('#test_frame').attr('src','').attr('src', $('#test_frame').attr('src'));If it doesn't work, you'll need to access the location object or something like that.